package dao;
import tool.RowMapper;
import tool.BaseDao;
import java.util.List;
import java.sql.SQLException;
import java.sql.ResultSet;
import entity.PreferentialtbEntity;
import dao.mapper.PreferentialtbDAOI;

/**
*@author JiangFan
*/
public class PreferentialtbDAO extends BaseDao implements PreferentialtbDAOI {

}
class PreferentialtbRowMapper implements RowMapper<PreferentialtbEntity>{
	@Override
	public PreferentialtbEntity rowmap(ResultSet set) throws  SQLException{
		return new PreferentialtbEntity(
			set.getString("preferential_id"),
			set.getDouble("preferential_price"),
			set.getDate("start_time"),
			set.getDate("end_time"),
			set.getString("goods_id"),
			set.getString("preferential_note")
		);
	}
}
